<!--<div class="well m-t">
    <div class="row">
        <div class="col-xs-6">
            <strong>TO:</strong>
            <h4>John Smith</h4>
            <p>
                2nd Floor<br>
                St John Street, Aberdeenshire 2541<br>
                United Kingdom<br>
                Phone: 031-432-678<br>
                Email: youemail@gmail.com<br>
            </p>
        </div>
        <div class="col-xs-6">
            <strong>SHIP TO:</strong>
            <h4>John Smith</h4>
            <p>
                2nd Floor<br>
                St John Street, Aberdeenshire 2541<br>
                United Kingdom<br>
                Phone: 031-432-678<br>
                Email: youemail@gmail.com<br>
            </p>
        </div>
    </div>
</div>-->
<p class="m-t m-b">
    Student Name: &nbsp;&nbsp;&nbsp;<strong> <?php echo $auth_user['fname'].' '.$auth_user['mname'].' '.$auth_user['lname']; ?></strong><br>
    Index Number: &nbsp;&nbsp;&nbsp;&nbsp;<strong><?php echo $auth_user['index_number']; ?></strong><br>
    Programme:    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong> <?php echo $program['Program']['name']; ?></strong><br>
    Wallet Balance:&nbsp;&nbsp;&nbsp;&nbsp; <strong> <?php echo 'GHS '. $controller->formatNumber($auth_user['account_balance'],'money'); ?></strong>
</p>
<div class="line"></div>
<table class="table">
    <thead>
        <tr>
            <th colspan="2">Transaction Type</th>
            <th>Amount (GHC)</th>
            <th>Date</th>
            <th>Reference</th>
            <!--<th width="60">QTY</th>
            <th>DESCRIPTION</th>
            <th width="140">UNIT PRICE</th>
            <th width="90">TOTAL</th>-->
        </tr>

    </thead>
    <tbody>
    <?php
    if(!empty($transactData)){

        $count = 1;
        foreach( $transactData as $val ) {
            $semester = '';
            $acc_year = '';
            if(isset($val['Fee']['FeeType'])){
                $reference = $val['Fee']['FeeType']['description'];
            }
            else{
                $reference = '';
            }

            if(isset($val['Transaction']['AcademicSession']['semester'])){
                $semester = 'Semester '.$val['Transaction']['AcademicSession']['semester'];
            }
            if(isset($val['Transaction']['AcademicSession']['acc_year'])){
                $acc_year = $val['Transaction']['AcademicSession']['acc_year'].' Academic Year';
            }
            ?>
            <tr class="data-row">
                <td><?php echo $count++.'.'; ?></td>
                <td><?php echo $val['TransactionItem']['desc']; ?></td>
                <td class="col_amt"><?php echo $controller->formatNumber($val['TransactionItem']['credit_amt'],'money'); ?></td>
                <td><?php echo date("d M Y, g:ia", strtotime($val['Transaction']['created'])); ?></td>
                <td><?php echo $reference; ?></td>
            </tr>
        <?php
        }
    }
    else{
        ?>
        <tr>
            <td colspan="6" class="text-center h4">
                <div>
                    No transaction histories.
                </div>
            </td>
        </tr>
    <?php
    }
    ?>
    </tbody>
</table>